package com.example.s03mybaits.repository;

import com.example.s03mybaits.entity.Commodity;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository

public interface CommodityMapper {

    //如果不写该注解在进行@Autowired时会报错，虽然报错但能正常运行
        @Select("select * from commodity")
         List<Commodity> findById();



}
